package com.huixh.train.common.enums;

/**
 * @author huixh
 */
public enum LockPreEnum {
    /**
     * 锁前缀
     */

    LOCK_PRE_CONFIRM_ORDER("LOCK_PRE_CONFIRM_ORDER","购票锁"),
    LOCK_PRE_SK_TOKEN("LOCK_PRE_SK_TOKEN","令牌锁"),
    LOCK_PRE_SK_TOKEN_COUNTER("LOCK_PRE_SK_TOKEN_COUNTER","令牌数"),

    ;
    private final String prefix;

    private final String desc;

    LockPreEnum(String prefix, String desc) {
        this.prefix = prefix;
        this.desc = desc;
    }

    public String getPrefix() {
        return prefix;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return this.prefix+"_";
    }
}
